package org.baicaix.worms {
	import org.baicaix.worms.display.camera.Camera;
	import org.baicaix.worms.display.camera.Target;

	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;

	/**
	 * 白菜天虫
	 * @author baicaix
	 * 2010-9-9
	 */
	[SWF(backgroundColor="#FFFFFF", frameRate="31", width="1280", height="680")]
	public class Main extends Sprite {

		public function Main() {
			
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			var stageContainer : Sprite = addChild(new Sprite()) as Sprite;
			
			Camera.init(stageContainer);
			Camera.pos(stage.stageWidth / 2, stage.stageHeight / 2);
			
			
			
			for (var i : int = 0; i < 10; i++) {
				stageContainer.addChild(new Target());
			}
		}
	}
}
